#
# Programs
#
all: fkgpiod termfix

fkgpiod: main.o uinput.o keydefs.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

termfix: termfix.o  gpio_axp209.o smbus.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
#
# Objects
#

%.o: %.c
	$(CC) $(CFLAGS) $(TOOLS_CFLAGS) -c -g $< -o $@
	
clean:
	rm -f *.o fkgpiod termfix
